home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 61 / Quick PC 61.iso / I386 / WMS.CAB / wmsConstants.inc < prev    next >
Encoding:
Text File  |  2003-02-21  |  7.1 KB  |  227 lines

  1. <%
  2. '+-------------------------------------------------------------------------
  3. '
  4. '  Microsoft Windows Media
  5. '  Copyright (C) Microsoft Corporation. All rights reserved.
  6. '
  7. '  File:       WMSConstants.asp
  8. '
  9. '  Contents:    Constants straight from the server OM and those used throughout the admin
  10. '
  11. '--------------------------------------------------------------------------
  12.  
  13. Const SERVERLISTFILENAME  = "WMSAdmin.XML"
  14. Const MIN_MSIE_VERSION    = 5.5
  15. Const MIN_NSCP_VERSION    = 5
  16. Const MIN_OPERA_VERSION   = 3.6
  17.  
  18. Const brUnknown           = 0
  19. Const brMSIE              = 1
  20. Const brNetscape          = 2
  21. Const brOpera             = 3
  22.  
  23.  
  24. '
  25. ' Used by WMSSession (hidden heartbeat frame)
  26. ' -------------
  27.  
  28. ' Number of seconds between requests made to the server.  
  29. '     Increase this value for slower connections.
  30. Const HEARTBEAT_INTERVAL = 20
  31. ' Number of elapsed heartbeats between diagnostic connections to the server.  
  32. '     Decrease this value for slower connections and increase the heartbeat interval.
  33. Const HEARTBEATS_BETWEEN_OM_PING = 5
  34.  
  35.  
  36. '
  37. ' Global Color Definitions
  38. ' -------------
  39. Const stdBlue             = "#6699FF"
  40. Const colorTabBackground  = "#6699FF"
  41.  
  42. Const colorTabLight       = "white"
  43. Const colorDialogLight    = "white"
  44. Const colorLight          = "white"
  45.  
  46. Const colorTabDark        = "darkgray"
  47. Const colorDialogDark     = "#c0c0b0"
  48. Const colorDark           = "#c0c0b0"
  49.  
  50. Const STDTABLEWIDTH       = 550
  51.  
  52. ' simple bounds checking
  53. Const MAX_LEN_SERVERNAME  = 250
  54. Const MAX_LEN_PPNAME      = 250
  55. Const MAX_LEN_PPID        = 128
  56. Const MAX_LEN_PLUGINNAME  = 250
  57. Const MAX_LEN_REALM       = 250
  58. Const MAX_LEN_OP          = 12
  59. Const MAX_LEN_LIMIT       = 9
  60. Const MAX_PATH            = 250
  61. Const MAX_PASSWD          = 250
  62. Const MAX_USERNAME        = 250
  63.  
  64. '
  65. ' Used on properties tabs
  66. ' -------------'
  67. Const DESCRIPTIONDLGHEIGHT = "350px"
  68. Const DESCRIPTIONDLGWIDTH  = "520px"
  69.  
  70. '
  71. ' Used on properties tabs
  72. ' -------------'
  73. Const MAX_LIMIT_VAL                     = 999999999
  74. Const DEFAULT_CONNECT_RATE              = "50"
  75. Const DEFAULT_PLAYERTIMEOUT_INSEC       = "3600"
  76. Const DEFAULT_SERVER_CONNECTACK_INSEC   = "60"
  77. Const DEFAULT_DELIVERY_RATE             = "5"
  78. Const DEFAULT_RAPIDSTART_RATE           = "3500"
  79.  
  80. '
  81. ' Dialog constants
  82. ' -------------'
  83. Const OP_RENAME_PP = 3
  84. Const OP_DUPLICATE_PP = 4
  85. Const OP_REMOVE_PP = 5
  86. Const OP_RENAME_PLUGIN = 6
  87. Const OP_DUPLICATE_PLUGIN = 7
  88. Const OP_REMOVE_PLUGIN = 8
  89. Const OP_REMOVE_PLUGINERR = 9
  90. Const OP_REMOVE_PLUGINERRDIS = 10
  91. Const OP_DISABLECRITSYSPLUGIN = 11
  92. Const OP_RENAME_STARTED_PUBPOINT = 12
  93. Const OP_REMOVE_SERVER = 86
  94.  
  95. Const ID_YES = 0
  96. Const ID_NO = 1
  97. Const ID_CANCEL = 2
  98.  
  99. '
  100. ' Plug-in category constants used in WMS object model
  101. ' -------------'
  102. Const AUTHORIZE_SUBCAT = "Authorize"
  103. Const LOGGING_SUBCAT = "Logging"
  104. Const ARCHIVER_SUBCAT = "Archive"
  105. Const PLAYLISTXFORM_SUBCAT = "Playlist transform"
  106. Const MULTICAST_SUBCAT = "Multicast"
  107.  
  108. '
  109. ' Server OM constants
  110. '--------------------
  111.  
  112. 'enum WMS_SERVER_STATUS
  113. Const WMS_SERVER_RUNNING = 0
  114. Const WMS_SERVER_ERROR = 1
  115. Const WMS_SERVER_ERROR_CRITICAL = 2
  116.  
  117. 'enum WMS_OS_PRODUCT_TYPE
  118. Const WMS_OS_PRODUCT_SERVER = 1
  119. Const WMS_OS_PRODUCT_ADVANCED = 2
  120.  
  121. 'enum WMS_DIAGNOSTIC_EVENT
  122. Const WMS_DIAGNOSTIC_EVENT_LIMIT_HIT = 0
  123. Const WMS_DIAGNOSTIC_EVENT_PLUGIN_EVENT_LOG_ERROR = 1
  124. Const WMS_DIAGNOSTIC_EVENT_PLUGIN_EVENT_LOG_WARNING = 2
  125. Const WMS_DIAGNOSTIC_EVENT_SERVER_EVENT_LOG_ERROR = 3
  126. Const WMS_DIAGNOSTIC_EVENT_SERVER_EVENT_LOG_WARNING = 4
  127.  
  128. 'enum WMS_PLUGIN_STATUS
  129. Const WMS_PLUGIN_NONE = 0
  130. Const WMS_PLUGIN_ERROR = 1
  131. Const WMS_PLUGIN_LOADED = 2
  132. Const WMS_PLUGIN_ENABLED = 4
  133. Const WMS_PLUGIN_LOADED_IN_PROC = 8
  134. Const WMS_PLUGIN_LOADED_OUT_OF_PROC = 16
  135. Const WMS_PLUGIN_REMOVE_ON_SERVICE_RESTART = 32
  136.  
  137. 'enum WMS_PLUGIN_SUPPORT_TYPE
  138. Const WMS_PLUGIN_SUPPORT_IS_SUPPORTED = 0
  139. Const WMS_PLUGIN_SUPPORT_REQUIRES_ADVANCED_SERVER = 1
  140.  
  141. 'enum WMS_PUBLISHING_POINT_TYPE
  142. Const WMS_PUBLISHING_POINT_TYPE_ON_DEMAND = 1
  143. Const WMS_PUBLISHING_POINT_TYPE_BROADCAST = 2
  144. Const WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_ON_DEMAND = 3
  145. Const WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_BROADCAST = 4
  146.  
  147. 'enum WMS_PUBLISHING_POINT_STATUS
  148. Const WMS_PUBLISHING_POINT_RUNNING = 0
  149. Const WMS_PUBLISHING_POINT_ERROR = 1
  150. Const WMS_PUBLISHING_POINT_ERROR_CRITICAL = 2
  151.  
  152. 'enum WMS_BROADCAST_PUBLISHING_POINT_STATUS
  153. Const WMS_BROADCAST_PUBLISHING_POINT_STARTED_WITHOUT_DATA = 1
  154. Const WMS_BROADCAST_PUBLISHING_POINT_STARTED = 2
  155. Const WMS_BROADCAST_PUBLISHING_POINT_ARCHIVING = 4
  156. Const WMS_BROADCAST_PUBLISHING_POINT_CHANGE_IN_PROGRESS = 8
  157.  
  158. 'enum WMS_ASP_SERVER_STATUS
  159. Const WMS_SERVER_UNKNOWN          = 0
  160. Const WMS_HOST_UNAVAILABLE        = 1
  161. Const WMS_SERVICE_UNAVAILABLE     = 2
  162. Const WMS_SERVICE_STOPPED          = 3
  163. Const WMS_SERVICE_STARTED          = 4
  164. Const WMS_SERVICE_INERROR         = 5
  165. Const WMS_SERVICE_FAILEDTOSTART   = 6
  166. Const WMS_SERVICE_STARTING        = 7
  167.  
  168. 'enum WMS_ASP_COMPUTER_NAME_FORMAT
  169. Const WMS_ComputerNameNetBIOS                     = 0
  170. Const WMS_ComputerNameDnsHostname                 = 1
  171. Const WMS_ComputerNameDnsDomain                   = 2
  172. Const WMS_ComputerNameDnsFullyQualified           = 3
  173. Const WMS_ComputerNamePhysicalNetBIOS             = 4
  174. Const WMS_ComputerNamePhysicalDnsHostname         = 5
  175. Const WMS_ComputerNamePhysicalDnsDomain           = 6
  176. Const WMS_ComputerNamePhysicalDnsFullyQualified   = 7
  177.  
  178. 'enum WMS_FILE_TYPE
  179. Const WMS_FILE_UNSPECIFIED        = 0
  180. Const WMS_FILE_DIRECTORY          = 1
  181. Const WMS_FILE_MEDIA              = 2
  182. Const WMS_FILE_PLAYLIST           = 3
  183. Const WMS_FILE_STREAM_FORMAT      = 4
  184. Const WMS_FILE_REMOTE_FILE        = 5
  185.  
  186. Const NOT_FOUND                   = -1
  187.  
  188. 'file I/O constants
  189. Const CONST_ForAppending  =  8
  190. Const CONST_ForReading    =  1
  191. Const CONST_ForWriting    =  2
  192. Const CONST_OpenAsUnicode = -1
  193.  
  194. 'plug-in category identifiers
  195. Const CAT_GEN = "gen"
  196. Const CAT_AUTHORIZE = "authorize"
  197. Const CAT_LOGGING = "log"
  198. Const CAT_EVENT = "event"
  199. Const CAT_AUTHEN = "authen"
  200. Const CAT_LIM = "limit"
  201. Const CAT_PLAYXFORM = "plxform"
  202. Const CAT_CACHEPROXYMGMT = "cpmgmt"
  203. Const CAT_ARCH = "arch"
  204. Const CAT_MCAST = "mcast"
  205. Const CAT_NET = "net"
  206. Const CAT_CRED = "cred"
  207. Const CAT_WIRELESS = "fec"
  208. Const CAT_CPROT = "cprot"
  209. Const CAT_MPARS = "mpars"
  210. Const CAT_PLPARS = "plpars"
  211. Const CAT_DSRC = "dsrc"
  212. Const CAT_CACHE = "cache"
  213. Const CAT_UCAST = "ucast"
  214.  
  215. Const REGEXP_DANGEROUS_CHARS = "<|>|%|;|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
  216. Const REGEXP_DANGEROUS_PPID_CHARS = "<|>|;|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
  217. Const REGEXP_ILLEGAL_PLUGINNAME_CHARS = "\\|%|\&|<|>|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
  218. Const REGEXP_ILLEGAL_PATH_CHARS = "<|>|%|;|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
  219. Const REGEXP_ILLEGAL_TEMPL_CHARS = "|;|\f|\n|\r|`|\x22|\x201C|\x201D|\x201E"
  220. Const REGEXP_ILLEGAL_PPSRC_CHARS = "<|>|\*|%|;|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
  221. Const REGEXP_ILLEGAL_PPSRC_CHARS_EX = "<|>|\*|%|;|&|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
  222. Const REGEXT_ILLEGAL_UNAME_CHARS = "<|>|%|;|&|`|!|@|#|$|^|(|)|\|[|]|{|}|:|\?|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
  223. Const REGEXP_DANGEROUS_ROLE_CHARS = "<|>|;|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
  224.  
  225. Const g_bShowJSErrorDialogs = TRUE
  226. Const g_bDebugMode = TRUE
  227. %>